<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>地址选择</title>
<link href="css/mobiscroll.scroller.css" rel="stylesheet" />
<link href="css/mobiscroll.scroller.android-ics.css" rel="stylesheet" />
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.js"></script>

<!-- 地址选择 -->
<script type="text/javascript" src="js/jsAddress.js"></script>
<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

<!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="favicon.ico" />
    <!--jquery库-->
<script src="js/jquery.min.js"></script>
    <!--bootstrap库-->
<link href="css/bootstrap.min.css" rel="stylesheet" />
<script src="js/bootstrap.min.js"></script>

<link href="css/font-awesome.min.css" rel="stylesheet" />
    <!--页面加载进度条-->
<link href="css/pace/dataurl.css" rel="stylesheet" />
<script src="js/pace/pace.min.js"></script>

    <!--jquery.hammer手势插件-->
<script src="js/jquery.hammer/hammer.min.js"></script>
<script src="js/jquery.hammer/jquery.hammer.js"></script>
    


<!--主要写的js代码-->

<link href="css/addr/mobiscroll.scroller.css" rel="stylesheet" />
<link href="css/addr/mobiscroll.scroller.android-ics.css" rel="stylesheet" />
<script src="js/addr/zepto.js"></script>
<script src="js/addr/mobiscroll.zepto.js" type="text/javascript"></script>
<script src="js/addr/mobiscroll.core.js" type="text/javascript"></script>
<script src="js/addr/mobiscroll.scroller.js" type="text/javascript"></script>
<script src="js/addr/mobiscroll.area.js"></script>
<script src="js/addr/mobiscroll.scroller.android-ics.js"></script>
<script src="js/addr/mobiscroll.i18n.zh.js"></script>




</head>
<body>
    <nav class="navbar navbar-inverse navbar-fixed-top">
        <div class="container-fluid">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle show pull-left" data-target="sidebar">
                    <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span>
                </button>
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
                        aria-expanded="false" aria-controls="navbar">
                    <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="showMerchants">外卖订餐系统</a>
            </div>
            <div id="navbar" class="collapse navbar-collapse">
                <ul class="nav navbar-nav">
                    
                    
                </ul>
                <ul class="nav navbar-nav navbar-right">
                    <li class="dropdown">
	                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
	                           aria-expanded="false"><i class="fa fa-user fa-fw"></i>&nbsp;${sessionScope.cname }&nbsp;<span class="caret"></span></a>
	                        <ul class="dropdown-menu" role="menu">
	                            <li><a href="toorderlist">订单列表</a></li>
                                <li><a href="toaddress">配送地址管理</a></li>
                                <li><a href="tologout">退出登录</a></li>
	                        </ul>
	                    </li>
                </ul>
            </div>
        </div>
    </nav>
    
<div>
<form id="address" style="margin-top: 100px;margin-left: 10px; width:80%;margin:0 auto"> 
  <div class="form-group">
    <label for="selectcity" style="margin-top: 5%;">选择城市</label>
    <input id="area" class="form-control" placeholder="请选择所在地区" areaid="10064 10043 10375" readonly="true">   
  </div>
  
   
    <!-- <div class="form-group">
            <span class="input-group-addon" id="sizing-addon2">收货地址</span>
            <select id="cmbProvince" name="cmbProvince"></select>  
		     <select id="cmbCity" name="cmbCity"></select>  
		     <select id="cmbArea" name="cmbArea"></select>
    </div> -->
   
  <div class="form-group">
    <label for="inputDetailedAddress">请输入详细地址</label>
    <input id="subAddress" class="form-control" placeholder="请输入详细地址" type="text">
  </div>
  <div class="form-group">
    <label for="inputContacPerson">请输入联系人</label>
    <input id="contact" class="form-control" placeholder="请输入联系人" type="text">
  </div>
  <div class="form-group">
    <label for="inputTel">联系方式</label>
    <input id="tel" class="form-control" placeholder="请输入联系方式" type="text">
  </div>
    <button  class="btn btn-primary" id="addAdressBtn" class="addbtn">添加新地址</button>
</form>
</div>
<hr>
     <h3 style="text-align:center">历史使用地址</h3>
<div id="deliv_info_list">
    <table  class="table table-bordered" style="width: 80%; margin: 0 auto;">
    		<thead>
	        <tr>
	        	<th>收件人</th>
		        <th>联系电话</th>
		        <th>地址</th>
		        <th>更新</th>
		        <td>删除</td>
	        </tr>
	        </thead>
	        <tbody id="deliv_info_table">
	        </tbody>
    </table>
</div>
	<!-- 模态框（Modal） -->  
<!-- <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">  
     <div class="modal-dialog">  
        <div class="modal-content">  
            <div class="modal-header">  
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>  
                <h4 class="modal-title" id="myModalLabel">修改信息</h4>  
            </div>  
            <div class="modal-body">
            	<form class="form-horizontal" role="form" id="modelFormId"
			style="width: 70%; margin: 0 auto; margin-top: 30px;">
					<div class="form-group">
						<label for="firstname" class="col-sm-2 control-label">收件人</label>
						<div class="col-sm-10">
							<input type="hidden" name="didform">
							<input type="text" class="form-control" name="contactform">
						</div>
					</div>
					<div class="form-group">
						<label for="firstname" class="col-sm-2 control-label">联系电话</label>
						<div class="col-sm-10">
							<input type="text" class="form-control" name="telform">
						</div>
					</div>
					<div class="form-group">
						<label for="firstname" class="col-sm-2 control-label">地址</label>
						<div class="col-sm-10">
							<input type="text" class="form-control" name="addrform">
						</div>
					</div>
				</form>
            </div>  
            <div class="modal-footer">  
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>  
                <button type="button" class="btn btn-info" id="modalBtn">提交更改</button>  
            </div>  
        </div>  
        /.modal-content  
    </div>  
    /.modal  
</div> -->
  
 <script src="js/addr/addrs.js"></script> 
</body>
</html>